package com.alexatguigu.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {
    
    // 声明队列
    @Bean
    public Queue orderQueue() {
        return new Queue("order.queue", true);
    }
}